package com.hziee.cosmanage.companymanage.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import jdk.nashorn.internal.objects.annotations.Constructor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;

/**
 * 企业部门表
 * 
 * @author yb
 * @email yangbin@gmail.com
 * @date 2021-02-04 22:08:51
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("company_part")
public class PartEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 企业部门id
	 */
	@TableId
	private Integer companyPartId;
	/**
	 * 企业部门
	 */
	private String part;
	/**
	 * 部门主管id
	 */
	private Integer partUserId;
	/**
	 * 父节点id
	 */
	private Integer pid;
	/**
	 * 1目录2菜单
	 */
	private Integer type;
	/**
	 * 排序
	 */
	private Integer sort;
	/**
	 * 状态
	 */
	private Integer status;
	/**
	 * 企业id
	 */
	private Integer companyId;

	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	@TableField(exist = false)
	private List<PartEntity> children;

	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	@TableField(exist = false)
	private List<UserInfoEntity> userInfoEntities;

}
